package com.example.demo.myMap.impl;

import com.example.demo.myMap.MyMap;

/**
 * @Auther: zwg
 * @Date: 2018/9/5 14:37
 * @Description:
 */
public class Entry<K,V>  {

    private K key;
    private V value;
    private Entry<K,V> next;

    public Entry() {
    }

    public Entry(K key, V value, Entry<K, V> next) {
        this.key = key;
        this.value = value;
        this.next = next;
    }

    public K getKey() {
        return key;
    }

    public V getValue() {
        return value;
    }

    public void setKey(K key) {
        this.key = key;
    }

    public void setValue(V value) {
        this.value = value;
    }

    public Entry<K, V> getNext() {
        return next;
    }

    public void setNext(Entry<K, V> next) {
        this.next = next;
    }
}
